package com.duxd.springsecurityfinal.springsecurityfinal.pojo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author dong
 * @date 2022/1/15 0015
 */
public class School {

    private String name;


    public School(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static List<School> buildList(String... names){
        return Arrays.stream(names).map(School::new).collect(Collectors.toList());
    }
}
